﻿<frame:CFrame xmlns:my="clr-namespace:VAdvantage.Controls" 
              x:Class="VAdvantage.ImpExp.ExcelImport"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:frame="clr-namespace:VAdvantage.Apps"
    xmlns:Provider="clr-namespace:SilverlightDesktop.Controls;assembly=SilverlightDesktop"
    xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"    
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"      
              xmlns:my1="clr-namespace:SLControls.Controls;assembly=SLControls"
              Height="600" Width="1100" 
     >

    <Grid x:Name="LayoutRoot" Background="#FFDEDEDE">

        <Grid Margin="5,0,5,5">
            <Grid Margin="0" Name="leftPanelGrid">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="200" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <Grid Margin="0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="27" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <controlsToolkit:BusyIndicator Name="loadWindows" IsBusy="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BusyContent="Loading..." Grid.Row="1" Margin="0">
                        <Border BorderThickness="0" Background="White">

                            <ListBox Margin="0" Name="lstSearchedWindows" SelectionChanged="OnWindowListChange" >
                                <ListBox.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="Black" Offset="0" />
                                        <GradientStop Color="#00000000" Offset="1" />
                                        <GradientStop Color="#93000000" Offset="0" />
                                        <GradientStop Color="#60000000" Offset="0" />
                                        <GradientStop Color="#40000000" Offset="0" />
                                        <GradientStop Color="#2E000000" Offset="0" />
                                        <GradientStop Color="#22000000" Offset="0" />
                                        <GradientStop Color="#11000000" Offset="0" />
                                        <GradientStop Color="#09000000" Offset="0.102" />
                                    </LinearGradientBrush>
                                </ListBox.Background>
                            </ListBox>

                        </Border>
                    </controlsToolkit:BusyIndicator>
                    <TextBox Margin="0,0,2,0" Name="txtSearchWindow" Style="{StaticResource SearchTextBoxStyle}"></TextBox>
                </Grid>
                <sdk:GridSplitter Margin="0" Width="2" Background="#FF8D8989" Grid.Column="0" HorizontalAlignment="Right"/>

                <controlsToolkit:BusyIndicator Name="loadWindowsDetails" IsBusy="False" IsEnabled="True" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BusyContent="Loading..." Grid.Column="1" Margin="5,0,0,0" >
                    <Grid Margin="0">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="40"></RowDefinition>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>

                        <Grid Margin="0,0,0,10" Name="grid2" Background="Transparent">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="*"/>

                            </Grid.ColumnDefinitions>

                            <Image Name="imgIcon" Height="30" Width="30" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="15,0,0,0" Source="/VAdvantage;component/Images/Toolbar/import32.png"></Image>
                            <my1:VLabel Grid.Column="1" Height="30" HorizontalAlignment="Left" Margin="5,0,0,0" Name="vlblTitle" VerticalAlignment="Stretch" Width="Auto" Content="Import" Foreground="#FF1A95D8" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Center" FontSize="20" FontWeight="Normal" />
                        </Grid>
                        <Grid Grid.Row="1">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="110"></ColumnDefinition>

                                <ColumnDefinition Width="*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                    <!--<ColumnDefinition Width="Auto"/>-->
                                </Grid.ColumnDefinitions>
                                <TextBlock Name="tbSelectMapping" Width="Auto" Text="Select Mapping" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="0"></TextBlock>


                                <Grid Margin="5,3,0,3" Name="spSelectMapping" Width="Auto" HorizontalAlignment="Stretch" Visibility="Visible"  Grid.Column="1" Grid.ColumnSpan="1" >
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                    </Grid.ColumnDefinitions>
                                    <ComboBox Width="Auto"  Name="cmbMapping" HorizontalAlignment="Stretch" SelectionChanged="cmbMapping_SelectionChanged" Margin="0" Height="25" />

                                    <my1:VRoundButton x:Name="btnNew" Grid.Column="1" IsEnabled="True"  Margin="5,0,0,0" Text="" Icon="/VAdvantage;component/Images/Toolbar/New22.png"  Width="30" HorizontalAlignment="Stretch" Height="25"  VRoundButtonClick="btnNew_Click" >
                                    </my1:VRoundButton>
                                </Grid>

                                <Grid Grid.Column="1" Name="spNewMapping"  Visibility="Collapsed" Width="Auto" HorizontalAlignment="Stretch" Margin="5,3,0,3">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="Auto"/>

                                    </Grid.ColumnDefinitions>
                                    <TextBox Height="25" Name="txtMappingName"  Width="Auto" HorizontalAlignment="Stretch" />

                                    <my1:VRoundButton x:Name="btnSaveAs" Grid.Column="1" Height="25" VerticalContentAlignment="Center" VRoundButtonClick="btnSaveAs_Click" Margin="5,0,0,0" Icon="/VAdvantage;component/Images/add_to_campaign.png" Text="Create">
                                    </my1:VRoundButton>

                                    <my1:VRoundButton x:Name="btnCancelNew" Grid.Column="2" Margin="5,0,0,0" Text="" VRoundButtonClick="btnCancelNew_Click" Icon="/VAdvantage;component/Images/cancel.png" VerticalAlignment="Center" HorizontalAlignment="Left" Height="25" Width="Auto" >

                                    </my1:VRoundButton>

                                </Grid>
                                <!--<StackPanel Grid.Column="1" Name="spNewMapping" Orientation="Horizontal" Visibility="Visible" Width="Auto" HorizontalAlignment="Stretch" Margin="5,3,0,3">
                                    <TextBox Height="25" Name="txtMappingName"  Width="Auto" HorizontalAlignment="Stretch" />

                                    <my1:VRoundButton x:Name="btnSaveAs" Height="25" VerticalContentAlignment="Center" VRoundButtonClick="btnSaveAs_Click" Margin="5,0,0,0" Icon="/VAdvantage;component/Images/add_to_campaign.png" Text="Create">
                                    </my1:VRoundButton>

                                    <my1:VRoundButton x:Name="btnCancelNew" Margin="5,0,0,0" Text="" VRoundButtonClick="btnCancelNew_Click" Icon="/VAdvantage;component/Images/cancel.png" VerticalAlignment="Center" HorizontalAlignment="Left" Height="25" Width="Auto" >

                                    </my1:VRoundButton>

                                </StackPanel>-->
                            </Grid>
                            <Grid Margin="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Row="0" Grid.Column="2">
                                <Grid.ColumnDefinitions >
                                    <ColumnDefinition Width="Auto"/>
                                    <ColumnDefinition Width="*"/>
                                </Grid.ColumnDefinitions>
                                <TextBlock Text="Select Tab" VerticalAlignment="Center" Margin="0"/>
                                <ComboBox Name="cmbTable" Grid.Column="1" Margin="5,0,0,0" Height="25" HorizontalAlignment="Stretch" IsEnabled="False" Width="Auto" FlowDirection="LeftToRight" HorizontalContentAlignment="Left" />
                            </Grid>



                        </Grid>
                        <controlsToolkit:BusyIndicator Name="loadWindowsDetailsdown" IsBusy="False" IsEnabled="True" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BusyContent="Loading..." Grid.Row ="2" Margin="0" >
                            <Grid Name="rightPanelGrid" Margin="0" >
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="*" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="33" />
                                </Grid.RowDefinitions>

                                <controlsToolkit:BusyIndicator Name="rightUpperGrid" Grid.Row="0" IsBusy="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BusyContent="Saving..." >
                                    <Grid Margin="0" Name="grid1">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto" />
                                            <RowDefinition Height="*" />
                                        </Grid.RowDefinitions>
                                        <Grid Name="upperDetailGrid" Grid.Row="1">
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto" />
                                                <RowDefinition Height="*" />
                                                <RowDefinition Height="Auto" />
                                            </Grid.RowDefinitions>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*" />
                                                <ColumnDefinition Width="Auto" />
                                                <ColumnDefinition Width="*" />
                                            </Grid.ColumnDefinitions>
                                            <StackPanel Grid.Column="1" Margin="5,0,5,0" Name="stackPanel1" VerticalAlignment="Center" Grid.Row="1">
                                                <my1:VRoundButton Height="28" x:Name="btnMap" Width="100" VerticalAlignment="Center" IsEnabled="False" Icon="/VAdvantage;component/Images/MapColumns.png" Text="Map" VRoundButtonClick="btnMap_Click" >
                                                </my1:VRoundButton>

                                                <!--<my1:VRoundButton Height="28" x:Name="btnRemoveMap" Width="100" VerticalAlignment="Bottom" Margin="0,5,0,0" IsEnabled="False" Text="Remove" Icon="/VAdvantage;component/Images/delete.png" VRoundButtonClick="btnRemoveMap_Click" >
                                                </my1:VRoundButton>-->
                                            </StackPanel>
                                            <Grid Grid.Column="2" Grid.Row="0">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="Auto"/>
                                                    <ColumnDefinition Width="*"/>
                                                </Grid.ColumnDefinitions>
                                                <Border Background="Green" Height="10" Width="10" VerticalAlignment="Bottom" Margin="0,0,0,4" ></Border>
                                                <my:VLabel Content="Mapping" Foreground="Green" Grid.Column="1" Margin="5,0,0,2" VerticalAlignment="Bottom"/>
                                                <Border  Height="10" Width="10" VerticalAlignment="Bottom" Margin="5,0,0,4" Grid.Column="2" Background="#FF0091FF"></Border>
                                                <my:VLabel Content="Default Values" Grid.Column="3" Margin="5,0,0,2" VerticalAlignment="Bottom" Foreground="#FF0091FF" />
                                                <TextBlock Height="17" Grid.Column="4" Margin="0,0,2,0" Name="tbIdentifierValue" Text="Identifier: None" VerticalAlignment="Bottom" FontStyle="Italic" FontWeight="Bold" FontSize="12"  FlowDirection="RightToLeft" />
                                            </Grid>





                                            <Grid>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto" />
                                                    <ColumnDefinition Width="*"  />

                                                </Grid.ColumnDefinitions>

                                                <TextBlock Height="17" Margin="0,5,0,3"  Name="tbExcelHeader" Text="Excel Columns" VerticalAlignment="Bottom" FontStyle="Italic" FontWeight="Bold" FontSize="12" />
                                                <Grid Margin="2,2,0,2" Grid.Column="1" >
                                                    <Grid.ColumnDefinitions>
                                                        <ColumnDefinition Width="*"></ColumnDefinition>
                                                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                                                        <ColumnDefinition Width="Auto"></ColumnDefinition>

                                                    </Grid.ColumnDefinitions>
                                                    <my1:VRoundButton x:Name="btnLoadFile"  Grid.Column="1" IsEnabled="False" VRoundButtonClick="btnLoadFile_Click" Margin="5,0,0,0" Icon="/VAdvantage;component/Images/Toolbar/open.png" Text="Open" FlowDirection="LeftToRight" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"  Height="25"  >
                                                    </my1:VRoundButton>

                                                    <!--<my1:VRoundButton x:Name="btnUploadFile" Grid.Column="2" IsEnabled="False" Margin="5,0,0,0" Icon="/VAdvantage;component/Images/Toolbar/Ignore22.png" Text="Load" FlowDirection="LeftToRight" HorizontalContentAlignment="Center" VRoundButtonClick="btnUploadFile_Click" Height="25" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" >
                                                    </my1:VRoundButton>-->
                                                </Grid>
                                            </Grid>

                                            <Grid HorizontalAlignment="Stretch" Margin="0" Name="defaultValueGrid" VerticalAlignment="Stretch" Grid.Column="2" Grid.Row="2">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="*" />
                                                    <ColumnDefinition Width="Auto" />
                                                </Grid.ColumnDefinitions>
                                                <Button Height="25" Margin="0,5,0,5" Name="btnSetDefault" VerticalAlignment="Center" Width="93" Click="btnSetDefault_Click" Grid.Column="1" Visibility="Collapsed">
                                                    <StackPanel Orientation="Horizontal" Width="78">
                                                        <Image Source="/VAdvantage;component/Images/ExportToClient24.png" Width="24" />
                                                        <TextBlock Height="17" Margin="3,0,0,0" Name="textBlock4" Text="Default" VerticalAlignment="Center" />
                                                    </StackPanel>
                                                </Button>
                                            </Grid>

                                            <controlsToolkit:BusyIndicator Name="loadExcelColumns" IsBusy="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BusyContent="Loading..."  Grid.Row="1" >
                                                <Border Background="White" BorderThickness="0">

                                                    <ListBox HorizontalAlignment="Stretch" Name="lstExcelCols" VerticalAlignment="Stretch"  >
                                                        <ListBox.Background>
                                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                                <GradientStop Color="Black" Offset="0" />
                                                                <GradientStop Color="#00000000" Offset="1" />
                                                                <GradientStop Color="#93000000" Offset="0" />
                                                                <GradientStop Color="#60000000" Offset="0" />
                                                                <GradientStop Color="#40000000" Offset="0" />
                                                                <GradientStop Color="#2E000000" Offset="0" />
                                                                <GradientStop Color="#22000000" Offset="0" />
                                                                <GradientStop Color="#11000000" Offset="0" />
                                                                <GradientStop Color="#09000000" Offset="0.102" />
                                                            </LinearGradientBrush>
                                                        </ListBox.Background>
                                                    </ListBox>
                                                </Border>
                                            </controlsToolkit:BusyIndicator>

                                            <controlsToolkit:BusyIndicator Name="loadTableColumns" IsBusy="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BusyContent="Loading..." Margin="0" Grid.Row="1" Grid.Column="2" Background="White" >
                                                <Border Background="White" BorderThickness="0">
                                                    <ListBox HorizontalAlignment="Stretch" Name="lstDBCols" VerticalAlignment="Stretch" SelectionChanged="lstDBCols_SelectionChanged_1" MouseRightButtonUp="lstExcelCols_MouseRightButtonUp" MouseRightButtonDown="lstExcelCols_MouseRightButtonDown" Margin="0"   >
                                                        <ListBox.Background>
                                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                                <GradientStop Color="Black" Offset="0" />
                                                                <GradientStop Color="#00000000" Offset="1" />
                                                                <GradientStop Color="#93000000" Offset="0" />
                                                                <GradientStop Color="#60000000" Offset="0" />
                                                                <GradientStop Color="#40000000" Offset="0" />
                                                                <GradientStop Color="#2E000000" Offset="0" />
                                                                <GradientStop Color="#22000000" Offset="0" />
                                                                <GradientStop Color="#11000000" Offset="0" />
                                                                <GradientStop Color="#09000000" Offset="0.102" />
                                                            </LinearGradientBrush>
                                                        </ListBox.Background>

                                                    </ListBox>
                                                </Border>

                                            </controlsToolkit:BusyIndicator>
                                            <TextBlock Grid.Row="2" Height="21" HorizontalAlignment="Stretch" Margin="0,5,0,5" Name="tbExcelColumnCount" Text="" VerticalAlignment="Top" Width="Auto" />
                                        </Grid>

                                        <!--<Grid>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                                    <ColumnDefinition Width="120"></ColumnDefinition>

                                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                                </Grid.ColumnDefinitions>
                                                <Grid>
                                                    <Grid.ColumnDefinitions>
                                                        <ColumnDefinition Width="Auto"/>
                                                        <ColumnDefinition Width="*"/>
                                                        <ColumnDefinition Width="Auto"/>
                                                    </Grid.ColumnDefinitions>
                                                    <TextBlock Name="tbSelectMapping" Text="Select Mapping" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="1,0,0,0"></TextBlock>

                                                   
                                                    <Grid Margin="10,0,0,0" Name="spSelectMapping"  Grid.Column="1" Grid.ColumnSpan="1" >
                                                        <Grid.ColumnDefinitions>
                                                            <ColumnDefinition Width="*"/>
                                                            <ColumnDefinition Width="Auto"/>
                                                        </Grid.ColumnDefinitions>
                                                        <ComboBox Width="Auto"  Name="cmbMapping" HorizontalAlignment="Stretch" SelectionChanged="cmbMapping_SelectionChanged" Margin="0,3" Height="25" />

                                                        <my1:VRoundButton x:Name="btnNew" Grid.Column="1" IsEnabled="True"  Margin="3,0,0,0" Text="" Icon="/VAdvantage;component/Images/Toolbar/New22.png"  Width="30" HorizontalAlignment="Stretch" Height="25"  MouseLeftButtonDown="btnNew_Click" >
                                                        </my1:VRoundButton>
                                                    </Grid>

                                                    <StackPanel Grid.Column="2" Name="spNewMapping" Orientation="Horizontal" Visibility="Collapsed" Margin="0,0,8,0">
                                                        <TextBox Height="23" Name="txtMappingName" Width="270" />

                                                        <my1:VRoundButton x:Name="btnSaveAs" MouseLeftButtonDown="btnSaveAs_Click" Margin="3,5,0,5" Icon="/VAdvantage;component/Images/add_to_campaign.png" Text="Create">
                                                        </my1:VRoundButton>

                                                        <my:ToolBarButton x:Name="btnCancelNew" Margin="3,5,5,5" Text="" Click="btnCancelNew_Click" Icon="/VAdvantage;component/Images/Toolbar/Ignore22.png" VerticalAlignment="Center" HorizontalAlignment="Left" Height="25" Width="30" IconMargin="4,0,0,3">

                                                        </my:ToolBarButton>

                                                    </StackPanel>
                                                </Grid>
                                                <Grid Margin="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Grid.Row="0" Grid.Column="2">
                                                    <Grid.ColumnDefinitions >
                                                        <ColumnDefinition Width="Auto"/>
                                                        <ColumnDefinition Width="*"/>
                                                    </Grid.ColumnDefinitions>
                                                    <TextBlock Text="Select Tab" VerticalAlignment="Center" Margin="0,0,5,0"/>
                                                    <ComboBox Name="cmbTable" Grid.Column="1" Margin="0,5" Height="25" HorizontalAlignment="Stretch" Width="Auto" FlowDirection="LeftToRight" HorizontalContentAlignment="Left" />
                                                </Grid>

                                               

                                            </Grid>-->

                                    </Grid>
                                </controlsToolkit:BusyIndicator>

                                <sdk:TabControl Name="ImportDetailTab" Grid.Row="1" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Padding="0,0,0,3" MinHeight="250" MaxHeight="300">
                                    <sdk:TabItem Header="Mapping" Padding="2">
                                        <sdk:TreeView Name="localtreeView" Padding="1" />
                                    </sdk:TabItem>

                                    <sdk:TabItem Header="Default Values">
                                        <!--<ListBox Name="lstDefaultValues" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" MouseRightButtonDown="lstDefaultValues_MouseRightButtonDown" MouseRightButtonUp="lstDefaultValues_MouseRightButtonUp"></ListBox>-->
                                        <controlsToolkit:BusyIndicator Name="loadDefultColumns" IsBusy="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" BusyContent="Loading..." >
                                            <sdk:TreeView Name="localDefulttreeView" Padding="1" />
                                        </controlsToolkit:BusyIndicator>

                                    </sdk:TabItem>

                                    <sdk:TabItem Header="Log">
                                        <ListBox Name="lstImportLog" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
                                            <ListBox.ItemTemplate>
                                                <DataTemplate>
                                                    <Grid Margin="2" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                                                        <Grid.ColumnDefinitions>
                                                            <ColumnDefinition Width="1*"></ColumnDefinition>
                                                        </Grid.ColumnDefinitions>
                                                        <Grid.RowDefinitions>
                                                            <RowDefinition Height="20"></RowDefinition>
                                                            <RowDefinition Height="Auto"></RowDefinition>
                                                        </Grid.RowDefinitions>
                                                        <TextBlock Name="tbStatus" Text="{Binding Path=Status}" Grid.Row="0" Grid.Column="0" Margin="2"></TextBlock>
                                                        <TextBlock Name="tbQuery" Text="{Binding Path=Query}" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="2"></TextBlock>
                                                    </Grid>
                                                </DataTemplate>
                                            </ListBox.ItemTemplate>
                                        </ListBox>
                                    </sdk:TabItem>
                                </sdk:TabControl>

                                <my1:VRoundButton Height="30" x:Name="btnExportLog" Width="99" VerticalAlignment="Bottom" Margin="1,0,0,1" IsEnabled="False" Grid.Row="2" HorizontalAlignment="Left" Text="ExportLog" VRoundButtonClick="btnExportLog_Click">
                                </my1:VRoundButton>


                                <my1:VRoundButton Height="30" x:Name="btnSave" Width="99" VerticalAlignment="Bottom" Margin="0,0,110,0" IsEnabled="False" Grid.Row="2" HorizontalAlignment="Right" Icon="/VAdvantage;component/Images/Toolbar/Save22.png" VRoundButtonClick="btnSave_Click" >
                                </my1:VRoundButton>


                                <my1:VRoundButton Text="Import" Grid.Row="2" Height="30" Margin="0,0,0,0" x:Name="btnImport" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="99" IsEnabled="False" Icon="/VAdvantage;component/Images/Toolbar/download.png" VRoundButtonClick="btnImport_Click"/>
                                <CheckBox Content="Commit after Import" Grid.Row="2" Height="19" Margin="0,10,220,0" Name="chkCommit" VerticalAlignment="Top" HorizontalContentAlignment="Left" FlowDirection="RightToLeft" HorizontalAlignment="Right" Width="167" />

                            </Grid>
                        </controlsToolkit:BusyIndicator>
                    </Grid>

                </controlsToolkit:BusyIndicator>

            </Grid>
        </Grid>
    </Grid>
</frame:CFrame>

    